package src;



public class SuperVisor implements ISuperVisor {
	
	private String SuperVisorName;
	private EnumSuperVisor SuperVisorKennung = EnumSuperVisor.NONE;
	
	public String getName()
	{
		return SuperVisorName; 
	}
	public void setName(String name)
	{
		SuperVisorName = name;
	}
	public EnumSuperVisor getKennung()
	{
		return SuperVisorKennung;
	}
	public void setKennung(EnumSuperVisor Kennung)
	{
		SuperVisorKennung = Kennung;
	}
	public String printSV()
	{
		String Output = "";
		
		if(!SuperVisorName.isEmpty())
		{
			Output += "Name: " + SuperVisorName + ", ";
		}

		Output += "Kennung: ";
		
		if(SuperVisorKennung == EnumSuperVisor.NONE)
		{
			Output += "None";
		}
		else if(SuperVisorKennung == EnumSuperVisor.PARENT)
		{
			Output += "Parent";
		}
		else if(SuperVisorKennung == EnumSuperVisor.GRANNI)
		{
			Output += "Granni";
		}
		else if(SuperVisorKennung == EnumSuperVisor.VOLUNTARY)
		{
			Output += "Voluntary";
		}
		else if(SuperVisorKennung == EnumSuperVisor.BYLAW)
		{
			Output += "By Law";
		}
		
		return Output;
	}

}
